package org.marlin.http.http;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;


/**
 * init version 1.5.0
 * @author Jack ZG
 * @since 1.0.0
 */
public class Context<K, V>
        extends HashMap<String, Object> {
    public <K, V> Context addContext(String key, Object value) {
        put(key, value);
        return this;
    }

    public String toJSONString() {
        return JSON.toJSONString(this);
    }
}

